package com.wakaca.design.pattern.behavioral.netty;

public class DeptAbstractHandler extends AbstractHandler {

    @Override
    public void doHandler(HandlerChainContext handlerChainContext, Object arg0) {
        System.out.println("DeptLeaveHandler 流程已处理.....");
        if(((Leave) arg0).getLeaveDays() <= MIDDLE){
            System.out.println("DeptLeaveHandler 流程已完结.....");
            return;
        }
        handlerChainContext.finaNextContext(arg0);
    }

}
